#ifndef __SECTION_HPP__
#define __SECTION_HPP__

#include <cstdint>
#include <fstream>
#include <string>

using namespace std;

class section_t
{
	public:
	section_t();
	uint32_t pos;
	uint32_t len;
	
	bool open(ifstream& wadstream, uint32_t tmdpos, uint32_t contentpos);
	bool unpack(ifstream& wadstream, string path);
};

#endif //__SECTION_HPP__
